package me.zhujin.java.learnjava.myserver.servlet;

import me.zhujin.java.learnjava.myserver.MyRequest;
import me.zhujin.java.learnjava.myserver.MyResponse;
import me.zhujin.java.learnjava.myserver.MyServlet;

/**
 * Created by zhujin on 10/24/16.
 * blog:www.zhujin.me
 * email: zhujin.nova@gmail.com
 */
public class RegisterMyServlet extends MyServlet {

    @Override
    protected void doPost(MyRequest request, MyResponse response) throws Exception {
        doGet(request, response);
    }

    @Override
    protected void doGet(MyRequest request, MyResponse response) throws Exception {
        response.printLn("<html><head><title>MyServer1</title></head><body>")
                .printLn("Register-Servlet")
                .printLn("</body></html>");
    }
}
